import { CSRCalculator } from './csr_expression_parse'

const str1: string = "<=/OpticalModule_1.FaultState;<=/OpticalModule_1.SupplyVoltage;\
<=/OpticalModule_1.VoltageLowerThresholdCritical;<=/OpticalModule_1.VoltageUpperThresholdCritical \
|> expr((($1 & 16 != 0) && ($2 != 65536) && ($3 != 65536) && ($2 < $3)) || \
(($1 & 32 != 0) && ($2 != 65536) && ($4 != 65536) && ($2 > $4))) |> string.format('aa%s', $1)";

const csr1 = new CSRCalculator(str1);
csr1.printAllInitParams();


